Skip to content

Refactor Dockerfile by removing bun installation - #2491

Open
raphaelauv wants to merge 2 commits into
fastapi:masterfrom
raphaelauv:patch-1
Open

raphaelauv wants to merge 2 commits into
fastapi:masterfrom
raphaelauv:patch-1

Conversation

@raphaelauv

Copy link
Copy Markdown

the build fail with

 => [6/9] COPY frontend/package.json /app/frontend/                                                                                                                                                                            0.0s
 => [7/9] WORKDIR /app/frontend                                                                                                                                                                                                0.0s 
 => ERROR [8/9] RUN bun install                                                                                                                                                                                                0.2s 
------                                                                                                                                                                                                                              
 > [8/9] RUN bun install:
0.168 /bin/sh: 1: bun: not found
------
[+] build 0/1
 ⠙ Image full-stack-fastapi-template-playwright Building                                                                                                                                                                        6.5s
Dockerfile.playwright:20

so let's use the official bun image

the build fail with

```
 => [6/9] COPY frontend/package.json /app/frontend/                                                                                                                                                                            0.0s
 => [7/9] WORKDIR /app/frontend                                                                                                                                                                                                0.0s 
 => ERROR [8/9] RUN bun install                                                                                                                                                                                                0.2s 
------                                                                                                                                                                                                                              
 > [8/9] RUN bun install:
0.168 /bin/sh: 1: bun: not found
------
[+] build 0/1
 ⠙ Image full-stack-fastapi-template-playwright Building                                                                                                                                                                        6.5s
Dockerfile.playwright:20
```

so let's use the official bun image
Create a symbolic link for bun as bunx in the Dockerfile.
@bankasimo-tech

Copy link
Copy Markdown

sum now plz

@raphaelauv

Copy link
Copy Markdown
Author

hello @bankasimo-tech , what do you mean by 'sum now plz' ?

@YuriiMotov

Copy link
Copy Markdown
Member

@raphaelauv, thanks for your interest!

Before you open more PRs, please make sure you read our contribution guidelines: https://tiangolo.com/open-source/contributing/#start-with-a-discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants